/* Global styling */

body {
  font-family: Verdana, Arial, sans-serif;
  font-size: small;
  margin: 0;
  padding: 0;
  background-color: white;
}

a:link {
  color: blue;
}

a:visited {
  color: #50f;
}

a:hover{
  color: red;
}

/* Header */

#header {
  background: #b0c4de url(../images/header_bg.png) no-repeat center left;
  position: relative;
  min-height: 55px;
  border-bottom: 1px solid black;
  margin-top: 0;
  padding-top: 0;
}

#logo h1 {
  padding: 5px;
  margin: 0;
  font-size: 1.8em;
  padding-left: 50px;
}

#logo h1 a {
  text-decoration: none;
  text-shadow: white 1px 1px 1px;
}

#menu {
  position: absolute;
  bottom: 5px;
  right: 0;
}

#menu ul {
  list-style: none;
  margin: 0;
  text-align: right
}

#menu li {
  border-right: 1px solid gray;
  display: inline;
  padding: 0 .75em;
  white-space: nowrap;
}

#menu li:last-child {
  border-right: none
}

/* Footer */

#footer {
  border-top: 1px solid black;
  padding: 30px 0 50px 0;
  background: #fff url(../images/footer_bg.png) repeat-x top left;
}

#footer p {
  margin-bottom: 1em;
  text-align: center;
  line-height: normal;
  font-size: .9em;
}

/* Content */

#content {
  padding: 8px 8px 30px;
}

h1, h2 {
  text-shadow: gray 1px 1px 1px;
}

/* Test results */

.tests-table {
  width: 100%;
  table-layout: fixed;
  border-bottom: 1px solid gray;
}

.tests-table th {
  font-size: x-small;
}

.tests-table th a {
  color: black;
}

.tests-table td {
  border-width: 0;
}

.tests-table td.test-url {
  border-top: 1px solid gray;
}

.tests-table td.test-result {
  text-align: center;
}

.result:hover {
  opacity: 0.8;
}

a.result-pass {
  background-color: lime;
}
a.result-fail {
  background-color: red;
  color: black;
}
a.result-fail-screenshot {
  background-color: #ffc0cb;
  color: black;
}
a.result-fail-single-window {
  background-color: purple;
  color: black;
}
a.result-hang {
  background-color: #ffb90f;
}
a.result-crash {
  background-color: black;
  color: white;
}

/* Results search */

.results-list {
  line-height: 1.5em;
}

.results-list .test-id {
  margin-left: 3em;
}

/* Spec detail */

.show-hide-links a {
  margin-left: 2em;
}

#section-list.hide-empty-sections .empty-section {
  display: none;
}

#section-list {
  list-style-type: none;
}

#section-list > li {
  /* border: 1px dashed #d3d3d3; */
  margin-bottom: 0.5em;
}

.section {
  background-color: #eeeeee;
  font-size: medium;
  margin: 0.5em 0;
  margin-left: 6em;
  position: relative;
}

.section-number {
  position: absolute;
  margin-left: -6em;
}

.show_hide_tests {
    margin-left: 1em;
}

.tests-container {
    margin-left: 1em;
}

.tests-container > div:first-of-type {
    margin-left: 5em;
}

.empty-section > .tests-container {
    background-color: lime;
    display: none;
}

.empty-section::after {
    /* content: "(no tests)"; */
}

/* Property listings */

dl dt {
  margin-top: 0.5em;
  font-weight: bold;
}

/* Tables */

table thead {
  background-color: #d3d3d3;
}

table td, table th {
  border: thin solid gray;
}

/* Test/Result details */

a.show-hide-frame {
  display: none;
}

pre.code, iframe.testcontent, img.reftestimg {
  border: thin solid #ccc;
}

pre.code {
  font-size: small;
  overflow: auto;
}

iframe.testcontent {
  width: 100%;
  height: 60em;
}

img.reftestimg {
}

/* Paginator (from http://svn.navi.cx/misc/trunk/djblets/djblets/media/css/datagrid.css) */

.paginator {
  padding: 8px 4px 4px 4px;
}

.paginator .current-page {
  font-weight: bold;
  padding: 2px 6px;
}

.paginator .page-count {
  color: #444444;
  margin-left: 10px;
}

.paginator a {
  border: 1px solid #CCCCCC;
  color: black;
  padding: 2px 6px;
  text-decoration: none;
}

.paginator a:hover {
  background: #9BC0F2;
  border-color: #003366;
  color: black;
}

.paginator a:visited {
  color: black;
}

/* Django form classes */

ul.errorlist {
  background: #fff3a3;
  border: 1px gray solid;
  padding: 4px 20px;
}
